<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.directive</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
<h1>helloWorld</h1>
<hr>
<div id="app">

</div>
<author></author>

<script type="text/javascript">
   var authorURL=Vue.extend({
        template:"<p><a :href='authorURL'>{{authorName}}</a></p>",
       data:function () {
           return {
               authorName:'jspang',
               authorURL:'http://jspang.com'
           }
       }
   })
new authorURL().$mount("author")
</script>
</body>
</html>